const util = require('../../utils/util.js');
const api = require('../../config/api.js');
const user = require('../../services/user.js');
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
   imgUrl: app.globalData.imgurl,
    list: ["LXT", "LXT"]
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    this.getZiBuList();
  },
  getZiBuList: function () {
    let that = this;
    util.request(api.ZiBuUrl, {}, 'get').then(function (data) {
      if (data.type === 'success') {
        that.setData({
          zibu: data.data.zibu
        });
      } else {
        console.log(data.content);
      }
    });
  }
})